package com.qef.com.mmovie.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.qef.com.mmovie.MainActivity;
import com.qef.com.mmovie.activity.CollectionActivity;
import com.qef.com.mmovie.activity.FeedbackActivity;
import com.qef.com.mmovie.activity.LoginActivity;
import com.qef.com.mmovie.activity.MyCommentActivity;
import com.qef.com.mmovie.activity.SettingActivity;
import com.qef.com.mmovie.activity.WellcomeActivity;
import com.qef.com.mmovie.mvp.activity.VideoDetailActivity;

/**
 * 2016 逛街购（北京）网络科技有限公司，版权所有
 * guangjiegou - Android客户端
 * Context:跳转界面统一管理器
 * Created by fanenqian on 2017/5/17 11:02
 */
public class UIHelper {
    private static void go(Context context, Class ActivityClass) {
        Intent intent = new Intent(context, ActivityClass);
        context.startActivity(intent);
    }

    public static void goLoginActivity(Context context) {
        go(context, LoginActivity.class);
    }

    public static void goFeedBackActivity(MainActivity mainActivity) {
        go(mainActivity, FeedbackActivity.class);
    }

    public static void goSettingActivity(MainActivity mainActivity) {
        go(mainActivity, SettingActivity.class);
    }

    public static void goCollections(MainActivity mainActivity) {
        go(mainActivity, CollectionActivity.class);
    }

    public static void goVideoDetailsActivity(VideoDetailActivity videoDetailActivity) {
        go(videoDetailActivity, VideoDetailActivity.class);
    }

    public static void goMyCommented(MainActivity mainActivity) {
        go(mainActivity, MyCommentActivity.class);
    }

    public static void goMainActivity(WellcomeActivity activity) {
        go(activity, MainActivity.class);
    }
}
